﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace StockGrabAPP
{
    public partial class DebugForm : Form
    {
        public DebugForm()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            textBox1.Clear();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Hide();
        }
        public void addStrings(List<String> data)
        {
            if (data == null)
                return;
            StringBuilder sb = new StringBuilder();
            foreach (String s in data)
            {
                sb.Append(s);
                sb.Append("\r\n");
            }
            String ss = sb.ToString();
            if (String.IsNullOrWhiteSpace(ss))
                return;
            textBox1.Text = textBox1.Text + ss;
        }
    }
}
